package expressToAltaRica;

import java.io.BufferedOutputStream;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class GenExportId {

	public static void main(String[] args){
		File export= new File("export-id");
		try {
			FileWriter writer = new FileWriter(export);
			BufferedWriter bfw=new BufferedWriter(writer);
			SimpleDateFormat form=new SimpleDateFormat("dd/MM/yy h:mm a");
			String d= form.format(new Date());
			bfw.write("<ocasVersion value=\"5.0.4-Beta1\">\n");
			bfw.write("<creationDate value=\""+d+"\">\n");
			bfw.write("<creationOwner value=\"admin\">\n");
			bfw.write("<comment>\r\n\r\n\r\n");
			bfw.write("</comment>");
			bfw.flush();
			bfw.close();

		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}


